package com.nuckly.news.data

sealed class ResultWrapper<out T> {

    object Loading: ResultWrapper<Nothing>()

    data class Success<out T>(val data: T): ResultWrapper<T>()

    data class Error(val message: String? = null): ResultWrapper<Nothing>()

}
